package application.common.render;

import application.common.model.Camera;
import javafx.beans.property.SimpleStringProperty;

public final class CameraProperty {

	private final SimpleStringProperty id = new SimpleStringProperty();
	private final SimpleStringProperty name = new SimpleStringProperty();
	private final SimpleStringProperty username = new SimpleStringProperty();
	private final SimpleStringProperty password = new SimpleStringProperty();
	private final SimpleStringProperty ip = new SimpleStringProperty();
	private final SimpleStringProperty port = new SimpleStringProperty();

	public CameraProperty(Camera camera) {
		id.set(camera.getId());
		name.set(camera.getName());
		ip.set(camera.getIp());
		username.set(camera.getUsername());
		password.set(camera.getPassword());
		port.set(camera.getPort()+"");
	}

	public String getId() {
		return id.get();
	}

	public String getName() {
		return name.get();
	}

	public String getUsername() {
		return username.get();
	}

	public String getPassword() {
		return password.get();
	}

	public String getIp() {
		return ip.get();
	}

	public String getPort() {
		return port.get();
	}

	public void setPort(String newValue) {
		 port.set(newValue);
	}
	
	public void setName(String newValue) {
		name.set(newValue);
	}
	public void setUsername(String newValue) {
		username.set(newValue);
	}
	public void setIp(String newValue) {
		ip.set(newValue);
	}
	public void setPassword(String newValue) {
		password.set(newValue);
	}

}
